package com.minsf.example.consumer.service;

import com.minsf.example.common.model.User;
import com.minsf.example.common.service.UserService;
import com.minsf.starter.annotion.RpcReference;
import org.springframework.stereotype.Service;

/**
 * @Description
 * @Author minify
 * @Date 2024/4/2 9:32
 * @Project sf-rpc
 */
@Service
public class ExampleServiceImpl {

    @RpcReference
    private UserService userService;

    public void test() {
        User userExample = new User();
        userExample.setName("minsf");
        User serviceUser = userService.getUser(userExample);
        System.out.println("serviceUser = " + serviceUser);
    }
}
